package com.bazaaroid.client.web.gwt.clientmodule.client.view;

import com.bazaaroid.client.web.gwt.clientmodule.client.view.search.impl.ClientSearchImpl;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PushButton;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class ClientModuleViewImpl extends Composite implements
		ClientModuleView {

	@UiTemplate("ClientModuleView.ui.xml")
	interface ClientModuleViewUiBinder extends
			UiBinder<Widget, ClientModuleViewImpl> {
	}

	private static ClientModuleViewUiBinder uiBinder = GWT
			.create(ClientModuleViewUiBinder.class);

	private Presenter presenter;

	@UiField
	VerticalPanel clientPanel;

	public ClientModuleViewImpl() {
		initWidget(uiBinder.createAndBindUi(this));
		clientPanel.add(new ClientSearchImpl());
	}

	public void setPresenter(Presenter presenter) {
		this.presenter = presenter;
	}

	public Widget asWidget() {
		return this;
	}

}
